package com.jintian.smart.base.api.demo.entity;

import com.jintian.smart.kernel.core.domain.IEntity;
import lombok.Data;
import org.beetl.sql.annotation.builder.FillStrategy;
import org.beetl.sql.annotation.builder.UpdateTime;
import org.beetl.sql.annotation.entity.AssignID;
import org.beetl.sql.annotation.entity.Table;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品 实体类
 */
@Data
@Table(name = "demo_goods")
public class GoodsEntity implements IEntity {
    @AssignID("snowid")
    private Long goodsId;

    /**
     * 商品状态:[1:预约中,2:售卖中,3:售罄]
     */
    private Integer goodsStatus;

    /**
     * 商品分类
     */
    private Long categoryId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 产地
     */
    private String place;

    /**
     * 商品价格
     */
    private BigDecimal price;


    /**
     * 上架状态
     */
    private Integer shelvesFlag;

    /**
     * 删除状态
     */
    private Integer deletedFlag;

    /**
     * 备注
     */
    private String remark;

    @UpdateTime(FillStrategy.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @UpdateTime(FillStrategy.INSERT)
    private LocalDateTime createTime;
}
